#ifndef SELECTBOX_H
#define	SELECTBOX_H

#include "opencv2/core/types_c.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/legacy/compat.hpp"
#include <iostream>
#include <vector>
#include <string.h>

using namespace std;
using namespace cv;

class selectBox
{
public:
    selectBox(String imageName, String windowName);
    vector<CvRect> draw();
    void my_mouse_callback(int event, int x, int y, int flags);
private:  
    void draw_box(IplImage* img, CvRect rect);
    CvRect box;
    CvPoint point;
    bool drawing_box;
    IplImage* image;
    IplImage* temp;
    String  windowName;
    vector<CvRect> rectangles;
};

void wrappedOnMouse(int event, int x, int y, int flags, void* ptr);

#endif	/* SELECTBOX_H */
